﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace studentSubsidy.Models
{
    [Table("user")]
    public class User
    {
        [Key]
        public int id { get; set; }
        public string? username { get; set; }
        public string? name { get; set; }
        public string? password { get; set; }
        public string? major { get; set; }
        public string? enrollment { get; set; }
        public string? address { get; set; }
        public string? phone { get; set; }
        public string? remark { get; set; }
        public string? role { get; set; }

        public User(int id, string? username, string? name, string? password, string? major, string? enrollment, string? address, string? phone, string? remark, string? role)
        {
            this.id = id;
            this.username = username;
            this.name = name;
            this.password = password;
            this.major = major;
            this.enrollment = enrollment;
            this.address = address;
            this.phone = phone;
            this.remark = remark;
            this.role = role;
        }
    }
}